{*
    Wards Management
    @author: trungdt
*}
<link rel="stylesheet" type="text/css" href="{$smarty.const.BASE_URL}/modules/rsmanagemodule/css/rsmanagemodule.css" />
{permissions level=$smarty.const.UILEVEL_PERMISSIONS}  
 {if $permissions.administrate == 1}
    <a href="{link action=ward_edit module=rsmanagemodule pid=$id}">{$_TR.add_new}</a>
 {/if}
{/permissions}
<div id="container">
<div class="with_sidebar" id="content">
    <h1 class="content-header">{$_TR.title} - {$province_name}</h1>
    <ul class="project_list">
        {foreach name=a from=$data item=listing}
            {assign var=start_index value=$start_index+1}
            <li class="project_list_item">
            {permissions level=$smarty.const.UILEVEL_PERMISSIONS}
                <div class="itemactions">
                    {if $permissions.administrate == 1}
                        <a href="{link action=ward_edit id=$listing->id pid=$listing->pid}" title="Edit this entry">
                            <img src="{$smarty.const.ICON_RELATIVE}edit.png" title="{$_TR.alt_edit}" alt="{$_TR.alt_edit}" />
                        </a>
                        <a href="{link action=ward_delete id=$listing->id }" title="Delete this entry">
                            <img src="{$smarty.const.ICON_RELATIVE}delete.png" title="{$_TR.alt_delete}" alt="{$_TR.alt_delete}" />
                        </a>
                    {/if}
                </div>
            {/permissions}
            <h3>{$start_index}. <a href="javsscript: void(0);">{$listing->name}</a> - <span>{$listing->shortname}</span></h3>
            </li>
        {/foreach}
       </ul>
       <div class="clear"></div>
    </div>
{permissions level=$smarty.const.UILEVEL_PERMISSIONS}  
 {if $permissions.administrate == 1}
    <a href="{link action=ward_edit module=rsmanagemodule pid=$id}">{$_TR.add_new}</a>
 {/if}
{/permissions}
</div>
<div class="clear"></div>